package merge;

import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Sheet;

import com.alibaba.excel.metadata.Head;
import com.alibaba.excel.write.merge.AbstractMergeStrategy;

public class MyMergeStrategy extends AbstractMergeStrategy
{

	@Override
	protected void merge(Sheet sheet, Cell cell, Head head, Integer relativeRowIndex)
	{
		System.out.println(cell.getAddress()+","+cell.getRowIndex()+","+cell.getColumnIndex());
		System.out.println(head.getHeadNameList()+","+head.getColumnIndex());
	}

}
